package com.exchange.user.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import org.springframework.stereotype.Component;

import java.io.Serializable;
import java.util.Date;

/**
 * 用户信息表(SysUser)实体类
 *
 * @author makejava
 * @since 2020-10-11 15:22:29
 */
@Component
@TableName("sys_user")
public class SysUser implements Serializable {
    private static final long serialVersionUID = 404569970933827611L;
    /**
    * 用户ID
    */
    @TableId
    private Long userId;
    /**
    * 用户名（登陆名）
    */
    private String userName;
    /**
    * 密码
    */
    private String password;
    /**
    * 真实姓名
    */
    private String realName;
    /**
    * 汉语拼音
    */
    private String chinesePinyin;
    /**
    * 身份证号
    */
    private String idcard;
    /**
    * token值
    */
    private String tokenValue;
    /**
    * 手机号
    */
    private String phone;
    /**
    * 用户类型（0：超级管理员，1：系统管理员，2：一般用户/业务人员）
    */
    private Integer userType;
    /**
    * 用户级别（1：省级，2：市级，3：区县级）
    */
    private Integer userLevel;
    /**
    * 创建人（用户ID）
    */
    private Integer createBy;
    /**
    * 创建时间
    */
    private Date createTime;
    /**
    * 修改人（用户ID）
    */
    private Integer updateBy;
    /**
    * 修改时间
    */
    private Date updateTime;
    /**
    * 用户状态（0：无效，1：有效）
    */
    private Integer userStatus;


    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public String getChinesePinyin() {
        return chinesePinyin;
    }

    public void setChinesePinyin(String chinesePinyin) {
        this.chinesePinyin = chinesePinyin;
    }

    public String getIdcard() {
        return idcard;
    }

    public void setIdcard(String idcard) {
        this.idcard = idcard;
    }

    public String getTokenValue() {
        return tokenValue;
    }

    public void setTokenValue(String tokenValue) {
        this.tokenValue = tokenValue;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Integer getUserType() {
        return userType;
    }

    public void setUserType(Integer userType) {
        this.userType = userType;
    }

    public Integer getUserLevel() {
        return userLevel;
    }

    public void setUserLevel(Integer userLevel) {
        this.userLevel = userLevel;
    }

    public Integer getCreateBy() {
        return createBy;
    }

    public void setCreateBy(Integer createBy) {
        this.createBy = createBy;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(Integer updateBy) {
        this.updateBy = updateBy;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getUserStatus() {
        return userStatus;
    }

    public void setUserStatus(Integer userStatus) {
        this.userStatus = userStatus;
    }

}
